package com.ushine.web.security.authority;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: yls
 * @Date: 2022/02/22 00:40
 * @Description: 权限表达式接口
 * @Version 1.0
 */
public interface IAuthorityService {
    /**
     * 功能描述:
     * 〈 根据请求地址来判断用户是否拥有这个权限 〉
     *
     * @param request
     * @param authentication
     * @return : boolean
     * @author : yls
     * @date : 2022/02/22 00:41
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
